package com.libc.yygh.model.order;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.libc.yygh.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * *
 * Created with Description:  PaymentInfo
 *
 * @fileRelativePath: PaymentInfo.java
 * @Date: Created on 2022/4/7  15:31  <br>
 * @author: LiBencheng <br>
 * @version: 1.0 <br>
 */
@Data
@ApiModel (description = "PaymentInfo")
@TableName ("payment_info")
public class PaymentInfo extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty (value = "对外业务编号")
    @TableField ("out_trade_no")
    private String outTradeNo;

    @ApiModelProperty (value = "订单编号")
    @TableField ("order_id")
    private Long orderId;

    @ApiModelProperty (value = "支付类型（微信 支付宝）")
    @TableField ("payment_type")
    private Integer paymentType;

    @ApiModelProperty (value = "交易编号")
    @TableField ("trade_no")
    private String tradeNo;

    @ApiModelProperty (value = "支付金额")
    @TableField ("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty (value = "交易内容")
    @TableField ("subject")
    private String subject;

    @ApiModelProperty (value = "支付状态")
    @TableField ("payment_status")
    private Integer paymentStatus;

    @ApiModelProperty (value = "回调时间")
    @TableField ("callback_time")
    private Date callbackTime;

    @ApiModelProperty (value = "回调信息")
    @TableField ("callback_content")
    private String callbackContent;

}

